package com.cbhb.sys;

public class Shuffle {

    public int[] shuffle(int[] nums, int n) {
        int[] res = new int[2*n];
        for(int i = 0; i < res.length; i++) {
            if (i%2 == 0) {
                // 奇数
                res[i] = nums[i/2];
            } else {
                // 偶数
                res[i] = nums[i/2 +n];
            }
        }
        return res;
    }
}
